<?php

class Page_Fe_Index extends Page {
	function __construct() {
		self::$TPL->appendJsFile('index');
		self::$TPL->setBodyClass('home');
		parent::__construct();
	}

	public function defaultAction() {
		$defaultProducts = Db_Products_Categories::getCategoriesWithDefaultProductsByProjectId(self::$PROJECT['id']);
		self::$TPL->assign('defaultProducts', $defaultProducts);
		self::$TPL->setBodyTemplate('index');
		return array(
			'type' => 'display'
		);
	}

}
